﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ZhangZhao.WebAPI
{
    /// <summary>
    /// API输出结果
    /// </summary>
    public class Output
    {
        /// <summary>
        /// 成功：登陆成功、注册成功
        /// </summary>
        public static readonly string Success = "T";

        /// <summary>
        /// 其他错误
        /// </summary>
        public static readonly string Fail = "F";

        /// <summary>
        /// 异常：程序异常、网络异常、数据库异常
        /// </summary>
        public static readonly string Exception = "E";
        
        /// <summary>
        /// 用户名或者Email不存在
        /// </summary>
        public static readonly string UserNameNotExist = "Y";

        /// <summary>
        /// 密码错误
        /// </summary>
        public static readonly string PasswordInvalid = "M";

        public static readonly string UserNameExist = "C";
        public static readonly string EmailExist = "N";
    }

    /// <summary>
    /// API接收参数
    /// </summary>
    public class Parameter
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public static readonly string UserName = "UserName";

        public static readonly string OtherUserName = "OtherUserName";

        /// <summary>
        /// 密码
        /// </summary>
        public static readonly string Password = "Password";

        /// <summary>
        /// Email
        /// </summary>
        public static readonly string Email = "Email";

        /// <summary>
        /// 输出参数：json、xml
        /// </summary>
        public static readonly string Output = "Output";

        /// <summary>
        /// 命令：上传、修改、删除、读取
        /// </summary>
        public static readonly string Command = "Command";

        /// <summary>
        /// Json数据格式
        /// </summary>
        public static readonly string JsonData = "DataValue";

        /// <summary>
        /// 收藏图片的自增长Id
        /// </summary>
        public static readonly string ThirdPhotoId = "ThirdPhotoId";

        public static readonly string RelationShip = "RelationShip";

        public static readonly string Number = "Number";

        public static readonly string StartIndex = "StartIndex";

        public static readonly string CommentId = "CommentId";

        public static readonly string UserGatherThirdPhotoId = "UserGatherThirdPhotoId";

        public static readonly string ThirdPhotoThumb = "ThirdPhotoThumb";

        public static readonly string ThirdPhotoLarge = "ThirdPhotoLarge";

        /// <summary>
        /// 是否喜欢：T喜欢  F踩  1中立
        /// </summary>
        public static readonly string IsLike = "IsLike";

        public static readonly string ShortDescription = "ShortDescription";

        public static readonly string CommentBody = "CommentBody";

        public static readonly string IsRecommend = "IsRecommend";

        public static readonly string Score = "Score";

        public static readonly string UserGatherThirdPhotoCommentId = "UserGatherThirdPhotoCommentId";
    }

    /// <summary>
    /// 命令参数值
    /// </summary>
    public class CommandParameterValue
    {
        /// <summary>
        /// 上传
        /// </summary>
        public static readonly string Upload = "Upload";

        /// <summary>
        /// 添加
        /// </summary>
        public static readonly string Add = "Add";

        /// <summary>
        /// 删除
        /// </summary>
        public static readonly string Delete = "Delete";

        /// <summary>
        /// 更新
        /// </summary>
        public static readonly string Update = "Update";

        /// <summary>
        /// 全部
        /// </summary>
        public static readonly string All = "All";

        /// <summary>
        /// 唯一
        /// </summary>
        public static readonly string Single = "Single";
    }
}